package com.homework3;

public class Designer extends Programmer{
    private double bonus;//奖金

    public Designer() {
    }

    public Designer(double bonus) {
        this.bonus = bonus;
    }

    public Designer(int id, String name, int age, double salary, String language, double bonus) {
        super(id, name, age, salary, language);
        this.bonus = bonus;
    }

    public Designer(String language, double bonus) {
        super(language);
        this.bonus = bonus;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    @Override
    public void getInfo() {
        System.out.println("编号：" + getId() + " 姓名：" + getName() + " 年龄：" + getAge() + " 语言：" + getLanguage() + " 奖金：" + bonus);
    }
}
